
project(trigger_thread_pool
        DESCRIPTION "C/C++ trigger_thread_pool"
        VERSION 1.0.0
        LANGUAGES ASM C CXX)


set(trigger_thread_pool_includes ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "C/C++ trigger_thread_pool include path" FORCE)
add_library(trigger_thread_pool_shared SHARED thread_time.hpp thread_pool.hpp thread_pool.cpp trigger_scheduler.hpp trigger_scheduler.cpp)
add_library(trigger_thread_pool_static STATIC thread_time.hpp thread_pool.hpp thread_pool.cpp trigger_scheduler.hpp trigger_scheduler.cpp)

find_package(Threads REQUIRED)
target_link_libraries(trigger_thread_pool_shared Threads::Threads)
target_link_libraries(trigger_thread_pool_static Threads::Threads)